package com.furongji.education.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.furongji.education.domain.dto.ArticleDto;
import com.furongji.education.domain.po.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.furongji.education.domain.query.ArticleQuery;
import com.furongji.education.domain.vo.ArticleVo;

/**
 * <p>
 * 社区文章表 服务类
 * </p>
 *
 * @author furongji
 * @since 2025-06-05
 */
public interface ArticleService extends IService<Article> {

    IPage<ArticleVo> getArticles(Integer current, Integer size, ArticleQuery articleQuery);

    boolean publishArticle(ArticleDto articleDto) throws JsonProcessingException;

    ArticleVo getArticleInfo(String articleId);
}
